//官网管理-反馈信息-配置文件
App.util.ns('Admin.Website.WebsiteFb');
Admin.Website.WebsiteFb.Conf = {
    columns: [
        {name: '名称', value: 'name'},
        {name: '电话', width: '120px',value: 'phone'},
        {name: '邮箱', width: '120px',value: 'email'},
        {name: '状态', width: '80px',value: function(item){
            switch (item.status+'') {
                case '0':
                    return '待处理';
                case '1':
                    return '已处理';
            }
        }},
        {name: '反馈时间', width: '140px', value: function(item){
            return App.util.formator.dateTime(item.created_at);
        }}
    ],
    form: [
        {type: 'hidden', name: 'id'},
        {type: 'hidden', name: 'ua'},
        {type: 'input', name: 'name', title: '名称', required: true, maxLength: 40, rule: {
            type: 'str',
            range: [1, 40]
        }},
        {type: 'input', name: 'phone', title: '电话', rule: {
            type: 'str',
            range: [0, 100]
        }},
        {type: 'input', name: 'email', title: '邮箱', rule: {
            type: 'str',
            range: [0, 100]
        }},
        {type: 'textarea', name: 'content', title: '内容', required: true, maxLength: 2000, rule: {
            type: 'str',
            range: [1, 4000]
        }}
    ]
};